// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
// 引入阿里云图标
import "./assets/fonts/iconfont.css"
import Vant from 'vant';// 引入vant 
import 'vant/lib/index.css';//引入vant样式
// 引入接口对象
import api from "./untils/api"
// 挂载原型
Vue.prototype.$axios=api
import VueRouter from "vue-router"

Vue.use(Vant);
const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push(location) {
    return originalPush.call(this, location).catch(err => err)
}
Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
